package cisdi.mes.sm.rm.dao;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface RmBaseDao {
	void save(Object entity) throws Exception;
	
	void update(Object entity) throws Exception;
	
	void upload(Object[] entities) throws Exception;
	
	void delete(Object entity) throws Exception;
	
	void delete(ArrayList<?> entities) throws Exception;
	
	void delete(String className, String primaryKey, String... ids) throws Exception;
	
	List<?> query(String daName) throws Exception;
	
	List<?> query(String daName, Map<String, String> rulMap) throws Exception;

}
